package com.luoqiz.demo.constractDemo;

public class Dog extends Animal {
	
	private String name = "dog";
	
	private static String blood = "jinmao";

	public static int height = 10;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	static {
		System.out.println("dog 静态代码块1");
	}

	{
		System.out.println("dog" + name + " 构造代码块1");
	}

	public Dog(String name) {
		this.name = name;
		System.out.println("dog" + name + " 构造函数");
	}

	public static String getBlood() {
		return blood;
	}

	public static void setBlood(String blood) {
		Dog.blood = blood;
	}

	{
		System.out.println("dog 构造代码块2");
	}
	static {
		System.out.println("dog 静态代码块2");
	}
}